package com.firefly.dao.dto.ums;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @description: 登录
 * @author: lzg(萤火科技 ： 854378082 @ qq.com)
 * @date: 2022/12/9
 **/
@Data
@EqualsAndHashCode
public class AdminLoginDto implements Serializable {
    private static final long serialVersionUID = 1L;
    @NotBlank(message = "用户名不能为空")
    @Length(min = 2, max = 30, message = "用户名长度2-30个字")
    private String name;
    @Length(min = 6, max = 15, message = "密码长度6-15位")
    private String password;
}
